From: Rui Matos Date: Wed, 23 Nov 2016 14:35:03 +0000 (+0100) Subject: windowManager: Handle fullscreening from zero sized windows X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~631 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3d6bf43649657cda522cfa37b82617a94d2e3927;p=gnome-shell.git windowManager: Handle fullscreening from zero sized windows Wayland clients can request their surfaces to be fullscreened before commiting a buffer which means that we need to handle fullscreen requests for which the old size is 0x0, preferably without warnings. Since the mapping animation also runs for these windows, we can simply bail out and ignore the fullscreen size change. https://bugzilla.gnome.org/show_bug.cgi?id=770345 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 9864a1565..eb7716a0d 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1256,8 +1256,9 @@ const WindowManager = new Lang.Class({ return; } - if (whichChange == Meta.SizeChange.FULLSCREEN || - whichChange == Meta.SizeChange.UNFULLSCREEN) + if ((whichChange == Meta.SizeChange.FULLSCREEN || + whichChange == Meta.SizeChange.UNFULLSCREEN) && + oldFrameRect.width > 0 && oldFrameRect.height > 0) this._fullscreenAnimation(shellwm, actor, oldFrameRect, whichChange); else shellwm.completed_size_change(actor);